package com.seek.eduservice.client;

import com.seek.commonutils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: wml
 * @since: 2022/2/8 17:47
 */
@FeignClient(name = "service-vod")
@Component
public interface VodClient {

    // 定义调用的方法路径
    // 根据视频 id 删除阿里云中的视频
    @DeleteMapping("/eduvod/video/removeAlyVideoByVideoSourceId/{videoSourceIds}")
    ResponseResult removeAlyVideoByVideoSourceId(@PathVariable("videoSourceIds") String videoSourceIds);
}
